/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.stone.back.user.service;

import com.stone.back.user.entity.BfCoupon;
import java.util.List;

/**
 * 优惠劵接口
 * @author apple
 */
public interface ICouponService {
    
    /**
     * 查询用户的优惠劵
     * @param userid
     * @return 
     */
    public List<BfCoupon> queryByUserid(Integer userid);
    
    /**
     * 增加用户的优惠劵
     * @param userid
     * @param code 
     */
    public void addCoupon(Integer userid, String code);
    
    /**
     * 删除用户优惠劵
     * @param userid
     * @param id 
     */
    public void removeCoupan(Integer userid, Integer id);
}
